import request from "@/utils/request";

// 查询小红书产品营销数据列表
export function listBiXhsMarketingPro(query) {
  return request({
    url: "/productStructure/BiXhsMarketingPro/list",
    method: "get",
    params: query,
  });
}

// 查询小红书产品营销数据详细
export function getBiXhsMarketingPro(id) {
  return request({
    url: "/productStructure/BiXhsMarketingPro/" + id,
    method: "get",
  });
}

// 新增小红书产品营销数据
export function addBiXhsMarketingPro(data) {
  return request({
    url: "/productStructure/BiXhsMarketingPro",
    method: "post",
    data: data,
  });
}

// 修改小红书产品营销数据
export function updateBiXhsMarketingPro(data) {
  return request({
    url: "/productStructure/BiXhsMarketingPro",
    method: "put",
    data: data,
  });
}

// 删除小红书产品营销数据
export function delBiXhsMarketingPro(id) {
  return request({
    url: "/productStructure/BiXhsMarketingPro/" + id,
    method: "delete",
  });
}
